package com.leyou.test.md5;

import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 两次运行的结果
 */
//$2a$10$u2KnVxjUbL54OaxCFTefwugA9q0KDfDLCHmh05KmdfULqg2GiM3ya
//$2a$10$VlQtv3Hia3NG15AeeLWWf.iqeBqvwYRI0XkTxpa9BPTKk9wFT/p6W
public class EncodingCode {
   @Test
    public void encodeTest(){
       BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
       String encode = passwordEncoder.encode("123");
       System.out.println(encode);


   }

}
